package com.sharkpro.designPattern.myTemplateMethod;

/**
 * @author jianxin.wei
 * @description
 * @date 2024/12/18 17:19
 */
public class CharDisplay extends AbstractDisplay{

    private char ch;

    public CharDisplay(char ch){
        this.ch = ch;
    }
    @Override
    public void open() {
        System.out.println("<<");
    }

    @Override
    public void print() {
        System.out.println(ch);
    }

    @Override
    public void close() {
        System.out.println(">>");
    }
}
